﻿@model   webui.ViewModel.v_LoginUser
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Login</title>
    <meta charset="utf-8">
    <link href="~/Content/login.css" rel="stylesheet" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="~/Scripts/jquery-1.8.0.min.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>  @*请求自动变ajax*@
    <script type="text/javascript">
        function Success(jsonData) {
            if (jsonData.Statu != "ok")
            {
                alert(jsonData.Msg);
            }
            else {
                window.top.location = jsonData.BackUrl;
            }
        }
    </script>


    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
</head>
<body>
    <!-----start-main---->
    <div class="main">
        <div class="login-form">
            <h1> 启云二手车联盟销售系统</h1>
            <div class="head">
                <img src="~/images/user.png" alt="" />
            </div>
            @using (Ajax.BeginForm(new AjaxOptions()
            {
                HttpMethod = "post",
                OnSuccess = "Success"
            }))
            {
                @Html.TextBoxFor(u => u.LoginName)
                @Html.PasswordFor(u => u.Pwd)
                <span> 保存Cooki</span>   @Html.CheckBoxFor(u => u.IsAlways)
                <div class="submit">
                    <input type="submit" value="登陆" />
                </div>
                <p> <!--<a href="#">Forgot Password ?</a>--></p>
            }
        </div>
        <div class="copy-right">
            <p>Copyright &copy; 2014.Company name All rights reserved.</p>
        </div>
    </div>

    <div style="display:none"></div>
</body>
</html>